#include <QtGui/QApplication>

#include "MainWindow.h"
#include "InitOgre.h"


int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	//OgreQt w;
	//w.show();

	InitOgre();


	mOgitorMainWindow = new MainWindow();
	mOgitorMainWindow->show();
	mOgitorMainWindow->setApplicationObject(&a);

	mOgitorMainWindow->repaint();


	int retval = a.exec();


	delete mOgitorMainWindow;


	return retval;
}


